package main

import "fmt"

func main() {
	k := intSum(1, 99)
	fmt.Println(k)

	sayHello()

	sum2 := intSum2(1, 2, 3, 4, 5, 6)
	fmt.Println(sum2)
}

func intSum2(x ...int) int {
	fmt.Println(x)

	sum := 0
	for _, v := range x {
		sum += v
	}
	return sum
}

func intSum(x int, y int) int {
	return x + y
}

func sayHello() {

	fmt.Println("hello world")
}
